package com.weipai.education.service;

import com.weipai.education.model.Role;
import com.weipai.education.model.api.Response;

import javax.validation.constraints.NotBlank;

/**
 * @Author: 曹朋飞
 * @Date: 2018/12/11 15:24
 */
public interface RoleService {
    
    //角色列表
    Response list(String status);

    //角色添加--修改
    Response save(Role role);

    //角色删除
    Response deleteById(String id);

    //更改角色状态
    Response changeStatus(String id);

    //根据角色id获得权限列表
    Response getMenusByRoleId(String id);

    //根据角色id，保存角色权限
    Response saveRoleMenus(String data);

    Response saveRole(String roleName, String roleDesc, Integer id);

    Integer verifyRoleIdAndMenuId(Integer roleId, Integer type);
}
